#!/bin/bash

docker stop cc-devops
docker rm cc-devops
docker rmi cc-devops:1.0
# 构建Docker镜像
# docker build -f "/home/admin/cc-devops/Dockerfile" -t cc-devops:1.0 .
docker build -f "/home/admin/cc-devops/Dockerfile" -t cc-devops:1.0 /home/admin/cc-devops/

# 运行Docker容器
docker run -d -p 8085:8080 --name cc-devops cc-devops:1.0
